package kr.nextree.study.spring.calculator;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

		ArithmeticCalucator calculator = (ArithmeticCalucator) context.getBean("arithmeticCalculator");
		calculator.add(1, 4);
		calculator.div(4, 2);
	}
}
